package com.chart.chart.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chart.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 图表数据标签设置表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("chart_labels")
public class ChartLabels extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 参数主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 显示状态 */
    @TableField("is_show")
    private Integer isShow;

    /** 标签线显示 */
    @TableField("label_line_show")
    private Integer labelLineShow;

    /** 颜色 */
    private String color;

    /** 字体大小 */
    @TableField("font_size")
    private Integer fontSize;

    /** 字体粗细 */
    @TableField("font_weight")
    private String fontWeight;

    /** 图表设置ID */
    @TableField("chart_settings_id")
    private Integer chartSettingsId;

    private String name;

/*    @TableField(exist = false)

    private List<ChartAxisConfiguration> children;*/

    @JsonIgnore
    private String createBy;

    @JsonIgnore
    private String updateBy;

    @JsonIgnore
    private Date createTime;

    @JsonIgnore
    private Date updateTime;

    @JsonIgnore
    private String remark;
}
